package com.itheima.question.service;

import com.itheima.PageVo;
import com.itheima.Result;
import com.itheima.admin.dto.PageDto;
import com.itheima.admin.dto.QuestionDto;
import com.itheima.admin.dto.QuestionItemDto;
import com.itheima.admin.vo.QuestionVo;

/**
 * @ClassName QuestionService
 * @Description TODO
 * @Author Mister-Lu
 * @Date 2021/12/21
 **/
public interface QuestionService {
    Result questionAdd(QuestionDto questionDto);

    QuestionDto queryById(String id);

    PageVo<QuestionVo> queryByPage(PageDto pageDto);


    Result editQuestionById(QuestionDto questionDto);

    Result delById(String id);

    QuestionItemDto queryItemById(String questionId);

    Result questionAdd2(QuestionItemDto questionItemDto);
}
